/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo05_多维数组的访问 {

    public static void main(String[] args) {

        int[][] arr = {
                {10, 20, 30},
                {30, 42, 34},
                {18, 212, 45},
                {81, 12, 36}
        };

        // 如何获取每一个一维数组？

//        System.out.println(arr.length);         //4

        for (int i = 0; i <= arr.length - 1; i++) {
            // 拿到每一个一位数组
//            System.out.println(arr[i].length);
            for (int j = 0; j <= arr[i].length - 1; j++) {
                System.out.print(arr[i][j]+"----");
            }

            System.out.println();
        }


//        System.out.println(arr[1][2]);
//        System.out.println(arr[2][1]);


/*        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);*/

    }
}
